package s2elinshu;

public class J13Ex46Calendar {
public static void main(String[] args){
	int cyear = 2003;
	String day;
	int what = ((cyear-1)*365+(cyear-1)/4-(cyear-1)/100+(cyear-1/400))%7;
	
	switch (what+1) {
	case 0:
		day = "일";
		break;
	case 1:
		day = "월";
		break;
	case 2:
		day = "화";
		break;
	case 3:
		day = "수";
		break;
	case 4:
		day = "목";
		break;
	case 5:
		day = "금";
		break;
	default:
		day = "토";
	}

	System.out.println(cyear+"년 1월 1일은 "+day+"요일");
	
}  // main
}  //J13Ex46Calender 
